package com.china08.yxyapi.entity.db.sws;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 友情链接
 * 
 * @author Ertao.Fang
 * 
 */
@Entity
@Table(name = "SWS_SETTING_LINKS", catalog = "yxy_sws")
public class SwsSettingLinks extends BaseEntity {

    private static final long serialVersionUID = 3929098731017384704L;

    /** ID */
    @Id
    @Column(name = "id", length = 32)
    private String id;

    /** 学校ID */
    @Column(name = "school_id", nullable = false)
    private String schoolId;

    /** 连接名称 */
    @Column(name = "link_name")
    private String linkName;

    /** 连接地址 */
    @Column(name = "link_url")
    private String linkUrl;

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 100;

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    // getters and setters
    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }
}
